#include "MyStack.h"

int main()
{
    MyStack st;
    StackInit(&st);
    StackPush(&st, 1);
    StackPush(&st, 2);
    StackPush(&st, 3);
    StackPush(&st, 4);
    StackPush(&st, 5);
    while(!StackEmpty(&st))
    {
        cout << StackTop(&st) << ' ';
        StackPop(&st);
    }
    StackDestroy(&st);
    return 0;
}